package com.neuedu.wemall.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

import com.neuedu.wemall.dao.entity.Favorite;
/**
* Author lu
* Date   2025-09-08 15:17:25
*/
@Mapper
public interface FavoriteMapper extends BaseMapper<Favorite> {

    /**
     * 根据会员用户ID查询商品收藏列表-分页查询
     * @param userId 会员用户ID
     * @param page 分页对象
     * @return 分页结果
     */
    Page<Favorite> selectFavoriteList(@Param("userId") Integer userId,Page<Favorite> page);
}